package test.format_test;

/**
 * @author ：蔡博
 * @description：TODO
 * @date ：2022/4/24 12:29
 */
public class ForEnum {
    public static void main(String[] args) {
        Season a = Season.valueOf("SPRING");
        Season b = Season.SUMMER;
        System.out.println(a.name);
        String t1 = new String("哈哈");
        String t2 = new String("哈哈");
        System.out.println(t1.hashCode()+"  "+t2.hashCode());
        System.out.println(a+"  "+b);
    }
}

@Deprecated
enum Season{
    SPRING("春"),SUMMER("夏");
    String name = "季节";

    Season(String name) {
        this.name = name;
    }
}

